typo fixed in sql script. viewing profiles working now