Add missing parameters

call the query with appropriate parameters