added parameterized query for deleting