regenerate SQL scripts