throw runtime exceptions in mysql