got db connections working