Adding support to databases in mongo