Fixed query for casesensitiveness on mysql on ubuntu