testing database search for device subnodes