delete query-result of loot tables as soon as possible to save some ram during startup.

Useful on systesm with very limited ram such as arm boards.
In this case, the data is loaded into a db_cache, then the query result is freed,
and finally the data is copied form the cache into the destination data structure.