Implemented Collect Media and Store

Implemented Collect Media files and their metadata and store in
database.