Export `.sql` files in the theme folder and allow to reimport them (see #7048)