update db related