Check if the player actually exists before attempting to insert the UUID, this prevents the auto increment value in the table from incrementing even though nothing was inserted.