Passing parameters to the SQL code