Add a function to create a master table for all accountIds.