added flushall to metastore