routing and database