minor refactoring
added a lot of querying options and schema specifying mechanisms (untested code due to inability to connect to datahub)
added more querying options and interfaces
added cascading delete spec to table definition
more query options