added db calls to get global stats for a given deck