test database read