Abstraction for persistence