Generate sql file by propel