reduced code duplication in basic ORM methods and started work on connecting sets and foreign keys
bug fixes