dded ProcessDataBase and ProcessDirectory

Changed ReadAndWriteDatabase and CountFilesAndMoves to use the new
parameterized Process functions.