fixing connect to db