Design note database structure