incrementMessageBadge() with mySQL query

incrementMessageBadge() function changed for mySQL query.
Adding a mySQL query "reset" badges when opening application.
Works only with one device temporarily.