making db connections