updated updatePlayerRatio() for new SQL commands