amended database access to allow for local access