Persist the database