draft sql script