Improved db version management.