parameterizing slow query timeout