title: Synchronized meteor with mysql
body: <p>hello i'm developping a  angular2-meteor application and i'm using nodet-mysql </p>
  
  <p>my problem i'm using the function Meteor.onConnect(the function) when i load my page n time the data will load n time from the database this is my code : 
        Loaduser.ts</p>
  
  <pre><code>   export function loaduser() {
     var Users:  Mysql.Collection&lt;any&gt; ;
          var connectionSettings = {
              host: 'localhost',
              user: 'root',
              port: 3300,
              password: '',
              database: 'my_db'
          };
      var db: Mysql.MeteorDatabase = Mysql.connect(connectionSettings);
      Users = db.meteorCollection&lt;Object&gt;("users", "usersCollection");
  }
  </code></pre>
  
  <p>and there is the code of my main.ts</p>
  
  <pre><code>if(Meteor.isServer){
  
  Meteor.onConnection(loaduser);
  }
  </code></pre>