added some extra touches to ActiveRecord Lite