transaction scaffold and db migration