dont make N queries just to get app versions

One query is plenty.

cc @Raydiation