Fix syntax errors in db migration.