Updating dbconnect code