Add findDocByFilename().
Add uid check before committing update.