Renamed query to parameters and added method to sanitize parameters.