Updated sql script call