Complete the rewrite of test_database.py.