db.js was more of a controller for a model, so move it to /controllers