Display chat messages from the database