Support database snapshots

BugzID: 20942