Removed keyId distinct and added ip to player table. It's a change of logic.
This is much better for statistics and for database logic.