WIP: changing things so shard spaces always map to a database