remove old db and update db