Created DB and LogFile classes

Refactoring in progress