Improve SqlQueryModel implementation

Fix receiving messages on XMPP. Change date formatting. Improve
MessagesPage.qml. Refactor MeegIMSettings to SettingsDBWrapper.
fail