Get incipient saveFileToDb with tests