Partial implementation of Active Record