Deprecated beginTransaction