Added email field to getMessagesByThread db query.