further code changes for version 2.03 which aims to improve the performance of barcode variations by moving the barcode comparison to the mysql database..
some error checking code