support for running stock status index generator via stored procedures, legacy code is still intact and needs to be removed