COOPR-617: add db upgrade tool