Adds configs for mongodb.