cachedb core: properly free raw query results

	* freeing more than 1 result leaked pkg mem

Fixes #226