Fixed major derp in SQL table creation.
chesscraft_pgn table foreign key constraint was wrong.