implement database with notes table