add upsert support to query builder
Merge pull request #97 from codemix/93-upsert

add upsert support to query builder