I'd rename 'name' to type 
Could you please add a comment explaining what the function does, the side effects, err conditions, and parameters?
```
// Init creates a connection to a database  server 
```