Fixes #1. The event store should not open a new database connection for every read or write. Instead the database connection is passed as a ctor parameter.