Handling of exceptions, very badly.(We should use MysqlError instead of Error)