adding mysql debug on errors