renamed getTable to create, added basic relation support, ref #90