implement inmemory filemetadatadatabase