storing in db (except download files)