Removes debug messages
Fixes typo then bugs hidden by the typo while parsing xml.conf
Splits the query into three fields and adds completion against glpi db