Move user schema and model to db.js