routing and db