Added db events.
On branch master
new file:   test/db-fail-events-test.js
new file:   test/db-selection-events-test.js
modified:   test/socket-connection-events-test.js