provide postgis as dbtype for datastore

fix for #1658
upload - log unexpected exceptions

fix for #1659
Merge pull request #1660 from ischneider/iss-1658-1659

Fixes for 1658 and 1659