Successfully reading from db, labels generated dynamically from the db as well, added options to choose which graph is displayed