Conditionally add files to database
Image file cleanup