An implementation of basic activerecord features