Tweaked the batch query function for customers and accounts
Removed recursion from batch methods