fix in dbmemory query using '.cont' and '.ncont'