separated message endpoints and added Id fields to match mongo _id