working files

broken mysql for file select might need left join