upsert.
Restore database feature.