starting connecting app to db