creation of notes, adjusting formating, cleaning up db