Removed $db from customer paging #refs 1287