Added function to clear all messages from database