setting up basic routing and configuring database to postgresql