Added function for saving each case notes to database. v3.1.2