Add concurrency test

Concurrency test checks that two separate Connection objects can access
the database at the same time without issues.