Fixed getting messages from database.
Fixed getting messages from database.

nokia-wroclaw/innovativeproject-notifications,nokia-wroclaw/innovativeproject-notifications,nokia-wroclaw/innovativeproject-notifications,nokia-wroclaw/innovativeproject-notifications