Fix bug in virt_db introduced in previous commit regarding result