Added ChatMessage class and DatabaseManager.addMessage() and DatabaseManager.getMessage().