only migrate hub db once

- when migrating hub and partitions, the hub was included in partitions and becomes locked by hub migration