update db and core