fixing db connection issue