rewrite deletefile class: get filename from db