add basic statistics on database