Cleanup
Made select queries only populate saved keys when fetching from db
Implemented basic saving for relationships
Made dbmodel+relationships into a separate subclass