added mysql error output