make it use the db.js module