def getMessage(cursor, msg_id, trigger):
    """
    Gets the newest message

    :returns: Containing the message itself as string and the conversation ID
    :rtype: dict
    """
    query = (
        'SELECT message_id, content FROM message_entry WHERE (user_id <> 5 AND id = {})'
        .format(msg_id))
    cursor.execute(query)
    result = cursor.fetchone()
    message_id = result[0]
    if result[1][:len(trigger)] == trigger:
        message = result[1][len(trigger):].strip()
    else:
        message = result[1].strip()
    messagedata = {'message': message, 'message_id': message_id}
    return messagedata
