test / add ability to save updates and delete priorities, and refactor mongo connection