handle different versions in database import