adds database dir
move helpers to internals object