added convert-db.sh which migrates dbs from older versions