SQL Execute Error Handling Fix