making own ActiveRecord