compare database with standard one, and export a sql file which can run it directly