added method to get messages for a user
implemented method to get user by id