Implemented writing KDBs, including when starting with an empty file.
No longer updates access time for every node while reading the file.