Make initial stock dialog faster.

This feches all the necessary data in only one query to make the initial
stock dialog *a lot* faster

Change-Id: I3d7f98bcfadbe20f3884dcf3bd90d374c4925021