run db migration in the beginning of build.