Check prefix in each subcommand which needs database prefix. Fix: #8480