Fix saving activities to work with the DB-based activity type changes
Add support for refreshing documents without keywords