Fetching latest serial(sequence) number while migrating