fixed db migration based on a new schema