attache file in db