Issue #1181 db migration

For @jkburges