Add support of multiple dbs in mongo