db.coffee in /middlewares