add error catch to dbUpdate script