Added database access check.