fixing up db migration stuff