established routing and database models