added config for mongodb and routes