[pacman-dev] attempt of reworking pacman_query function