Use a partial uniqueness index for apps instead.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>