add default implementation for upsertQuery

Some dialects developers might need to be reminded they need to
implement the upsertQuery.
Merge pull request #2666 from mbroadst/upsert-abstract-dialect

add default implementation for upsertQuery