Routing and database work