full persist and restore from db