configuring app for mongodb