connecting to db on website