fixed db_version parameter in upgrade script