Improved database reading for score pgn

Should ensure no more duplicate files reread, and hopefully fix issue with file collisions.