added DB migration script from v6 to v7