SENTRY-460 Upgrade SQL scripts for SENTRY high availability