Another big commit

Added graph functionality, added new database for historical averages