attach file and latest db