Connection to db set up