fix query bug, update string representation of stocks to includ stock_id