update sandi database sql script