#GT-919: fixed case sensivitines in many sql requests