add to db during upload