Isolate database state only to class and affected method level