refactored the get tags for file to use only one query per file name.