Database and collection

Updated code to be more Mongo-like. The resource now returns a MongoDB
object instead of a MongoClient object. The Mongo base model returns a
MongoCollection object for direct operations.