simplify test database calls