Add some database tests