Database class for working with MongoDB