Deleting extra files in db