added some new methods in service and DAO classes to retrieve a particular user and his messages by user name
corrected the query for performing the join required to retrieve messages for a particular user