lite version of ActiveRecord