Improved the index range key query

Use :select option (or attributes_to_get in aws_sdk term) to get all ids
in one db query, then use Set#merge to create a set of ids ("+" creates
a new set for each operation)