* ios: prohibit /sql commands if unauthorized * refactor * move check to send command * revert diff * refactor * android * Apply suggestions from code review Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com> * fix Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>