Debuging MySQLi implementation