fix db format