Ensured that SQL is correctly encoded