fix add message from db to cache update referencedCounter by mistake bug
add increaseReferencedCounter test
improve message info bar