Update sql script for SD17