changed File.name to File.filename in Files table in model