modified the self.message_search method where in the message model