Basic clone of ActiveRecord's ORM features