store file metadata in md_file and md_metadata tables.