update to new db format