finished basic db connections