Database structure for the note db