create affiliate networks table and association with stores