Building db with psm scores and returning the scores