bug found in dbOperations.js