Hacking the Database::escape_string() and Database::query() in order to use the pdo::quote function. The problem was that pdo:quote adds a ' character,
but chamilo queries already includes a quote character like ' or ", a fix adds a _@_ string
in order to identify the quotes parsed by Database::escape_string() and then changed in Database::query().
Minor - setting DebugStack() in the $app container