Query optimization for smoke_tests show page.

This optimizes the jobs query a bit.
Add indexes on config_modules.