Persist database