add upsert function

Move update & updateGet to PersistStore
Merge pull request #255 from yesodweb/upsert

add upsert function