Use the state to filter out unstarted builds
Use the state to filter out unstarted builds

This should speed up the query, since there is now an index on
builds.state.

developerfm/travis-core,GistIcon/travis-core,travis-ci/travis-core,final-ci/travis-core,Tiger66639/travis-core,final-ci/travis-core,developerfm/travis-core,GistIcon/travis-core,travis-ci/travis-core,kidaa/travis-core,developerfm/travis-core,kidaa/travis-core,final-ci/travis-core,jantman/travis-core,travis-ci/travis-core,jantman/travis-core,GistIcon/travis-core,Tiger66639/travis-core,kidaa/travis-core,Tiger66639/travis-core