Change testdb API to allow usage with Postgres.

Postgres does not allow selecting a database after a connection is established. Instead, we can just make the db connection private to testdb and rely on the caller to create their own connection to the correct database given the Name.