Making db upgrade scripts more vcs agnostic