update deploy command + fix errors in migration script