if we store 0-byte files, don't remove the entry from the database. Also explicitly chmod the created file.