added script to export schema