Add basic connect

Fixes #5 
You mean for the second case? Yes you're right `connection.getDb` would be enough. I inserted it here to look more consistent.