Populating the stock_status_index table now happens in a stored procedure.