Allow different datastore and CKAN DBs

Fixes #893