get profiles from db