Subject : Resloved update query crash

Description:
1. Added if condition to check whether cursor is empty or not.
Merge pull request #9 from ajaybabar/updateQ

Subject : Resloved update query crash