dynamic routes

Added the ability to configure routes in the database.