Fixed unread badge updating
Auto db update added