Modified backend to escape mysql special characters.