Added barscanner handler and inserting the data to database