bugfix: validation, error reporting, MySQLi driver