More database tests