Restructuring

- Explicit passing of 'node' object
- Removed connect-callback 'db' parameter
- Using node.err