Completed all function for saving case notes to the database v3.2