move db.js to the root