update db definition