feat: refresh stats on database updates