Database related classes refactored and comment added. One library was removed and the build path cleaned. The affected classes Component and Barcodescanner should be checked.