Updated to dnd/notes sql query

Sql query updated to be the userName instead of just ID