Added linting to db models, cleaned up directory structure.