Add generic methods to MongoDao. Prepare #14.