Persist domain stats in sqlite