Updated db connect