[WIP] Support basic sharding of the mailsync database.