Make saveFilesToAgentDirectory create DB doc too