added retrieval of resource totals when retrieving budget