Database optimisations

Note : Check admin/modules/sla_categories/models/categories.php with winmerge or another visual file comparator, git didn't diff correctly.

Corrected a bug : text values could not contain quotes.
 - added escape functions
 - using escape functions in admin

Database optimisation :
 - Added indexes on fields concerned by front office access.