Configurable shard db pattern