Compare two MySQL database and get the difference written to a SQL file