updated query done
Merge pull request #8 from ajaybabar/updateQ

updated query resolved with cursor.moveLast function