Fix relative routes
Return after flushing the database
Reorganize app; add linting