updated base sql without auto increment and base sql generation script