table -> profile querying