Support dropping of database pool.
Make context class for database tests.