building a simple activeRecord from scratch