My own implementation of a lightweight version of ActiveRecord