v11 DB upgrade

fixes #1931
Merge pull request #283 from devrandom/compat

v11 DB upgrade