refactoring everything so Relations are not declared per table, but per schema