sorting db migration issues