added config for mongodb