Added get resources method to help optimize db queries.