Design a multiplayer online chess game, detailing the database schema, API endpoints, and state synchronization.