adding query and delete rake tasks for index