migrate data from old database.