Made SQL queries safer