working on updating db format