- replace mysql_insert_id with wpdb->insert_id. direct mysql access
  deprecated in wordpress 3.9 per notes at
  http://make.wordpress.org/core/2014/04/07/mysql-in-wordpress-3-9/

M    leagues.php