Added graph and database + mini daemon for stats