A database interface with mongoDB.