Add script to extract .poly files from the database