Changes the db implementation to a directory-file based one (missing locks yet)