fixing db connect