Continued refactoring the prequeries. Continued work on the profiles. Moved more logic out of the routes.