Some database tests