db connect working