Use Query class to use the unique attr in Redmine < 2.3.0

Fix Issue https://github.com/zh/redmine_importer/pull/4#issuecomment-20053659
I was tested on Redmine 2.2.4 + Ruby 1.9.3-p392.