moved DB related classes to inners of DBH
moved traits to separate files