Open db connection

It will open a db connection before starting the web server.