Automatically upgrade the database to the latest version.
NOT TESTED FULLY.