Added methods to DBHandler. Deleted duplicates of connecting routine.