Database tests.