Builds Chat and Message models