Prototype of an ActiveRecord DB API
improved validations