databasechange to ranking and zscore