Relax SQL query requirements in specs

This corresponds to some extra work done when build matrix
is expanded.

See https://github.com/travis-ci/travis-core/pull/404