Implemented basic ORM functionality.