Set database version when upgrading old database