changed the note db properties and added some tests for notes