query timeout in db criteria