Updated DBHandling Class

Updated Database handling class to remove redundant code that could be
declared once which makes it simpler when crossing from build computer
to customer computer.