Update middleware
Avoid throw exception if no database
Update routes with new routing system