add indexes to apps and app versions