Implemented upgrading to a next db version.