db connection setup moved to start of the application