Added database tests.