refactoring
implementing database table generation from models