Moved mongodb configuration to config/database.js