Forked the script and tested specific stores and brands having issues on the extraction. Identified the issue, caused by a different version of mysql database from the store that is returning unexpected data to the program, thus causing the execution to stop. Updated the extraction script to solve the issue	