Catch MySql Exceptions