database access fixed