retrieve total value as stored in DB