basic ORM functionality, need to hookup application