Updates to visualization (improved comments and sql query clarity)