Added checks to score pgn, if processed already. Also passed a placeholder to query.