How do I create automatic sections in Quark Xpress?
There are two ways to go about this. You can either get commercial QuarkXPress XTension software that handles database publishing or you can attempt to write your own AppleScript that talks to some external data source and builds elements in a QuarkXPress document.

I haven't used commercial database publishing software, I just know they exist. So I can't help much beyond suggesting to search for "Quark database publishing" and looking around. I would imagine that this type of solution would support more different types of databases and would be easier to implement. This would also probably be a little expensive.

The second option - AppleScript - can be difficult, as whoever is implementing this would need to have access to and be familiar with QuarkXPress and AppleScript. I don't think you can even start to develop an AppleScript for an application that isn't installed on your computer.

You would also need to find a way to talk to your database using AppleScript, which might limit the kinds of databases you could use. I've mostly created scripts that used delimited text exports from databases as a starting point, which may not be enough for you.

Writing an AppleScript can be painstaking work, as the documentation is hard to follow and finding the right syntax to accomplish something is often just trying different things until you find something that works. But, you might not need to spend any money at all, especially if you can work from delimited text exports.

Telling you how to write an AppleScript is a little beyond the scope of a StackExchange answer, but searching for "Quark AppleScript" should at least get you started. There are also normally example AppleScripts installed with Quark, I think in the application's folder.