query by id to get name, also updated params to take INT