testing database access