Adjusted db connect script