Fixed problem where chooseDB was trying to migrate a single level