KCINFR-1018: Committing SQL fixes. Role changes done only if table exists.