Corrected doc type for update notifications in code, and added SQL to update script to take out existing ones. Needs re-testing of accept changes function. Also SQL added to update should only be used once. Fixes #373, closes #373