shift responsibility for data fetching to db class