better mysql error reporting