added upgrading databases to newer versions