update stock to table