fixed bug with saving new code to DB, refactoring in Barcodeinfo class, hiding save code button when code already in DB