[ADD,IMP]stock:add a pivot graph for stock forecast

[IMP] improve query and add access right

Update query string