expose entities collection
added config for mongodb