Loop to update the general model and rudimentary initialization

Two questions:
1. How can you abstract  this function properly?
```javascript
module.exports = function() {
    models.General.find({}, function(err, docs) {
```
2. What's the accepted form of initializing a database in node?
Instead of a cronjob. Maybe insert 2 more attributes into each model. One to hold the last time the data was updated and the second to hold the time interval for which we will allow that particular query to be updated. 

If the current time minus the interval is greater than the last update time, update with the API and cache the results, else use the cache.