Add sql class for populating one nested document