Active record implementation for Mongo