Database SQL script generator