Data-driven, document- and transaction-based object-relationship management system (ORM) in Ruby