add hover events on graph
fix sql statement