Added query to fetch accounts by type
Error handling?