Stock graph: added grabbing data from database