Fix the bug of disconnection with db server

This is a patch for issue #9 that I reported. Please check this.

https://github.com/strongloop/loopback-example-relations-basic/issues/9