Read/unread functionality working both front end and backend