Move routes to database
Basic framework for editing routes.
added missing files