Optimized database, now takes up 52% less space. Reworked each graphing function to be compatible with the new database