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?