add queries logging