Fixed bugs:
-annotations get put on database when you exit the editing
-When you get ids, it now removes any that are redundant