Exporting PowerDNS Zones to Bind Files

Can you easily export PowerDNS zones using a MySQL DB? The answer may not be as easy as it seems. I have been working on a Migration from PowerDNS using a MySQL DB. We have a custom solution which gets updated and gets pushed to Akamai. The problem is, this custom solution requires all the zones to be in bind format. Doing some research I found out there is no easy way to get these zones into a bind zone file.