Started adding tests for db.js