database: rename clearSnapshot() => flushSnapshot()