Revert "execute entity query in asterisk db instead of xivo db"

This reverts commit ec7cbd2267b64a888c78337ff40a16c526dcb36f.