Add buildCovariates method to CohortConn class