Basic database tests.