Script to build Stock table