Fixed Updating of notes

Problem was with Saving detached entities. saveOrUpdate fixes this