Implementation activerecord for mongodb