refactoring of the migrations code to define schema in a separate file.