Bug fix: empty db query returns empty list.