gennerate the sql file