[Migration] remove references to main database