Move update SQL string generation
Merge pull request #24 from Ashrey/master

Move update SQL string generation