I finnaly learn how AJAX Works, and the step to create a script of my own with this simple code
My suggestion is to change the line 31
$this->table = "tblcategories";
DEFINE ('DB_TABLE', 'tblcategories');
also change the line to
$this->table = DB_TABLE;
To have all the DB variables in one place.