Query timeout expired

debugStr: [
beginning of shopping.asp
getting session vars
done getting session vars
done getting query string vars
about to get shipping flat rate cost
about to get shipping options
done getting shipping options
going to look for temp sale order id
after checking for temp sale order id: [0]
is new order
getting account credits
getting gift certificates
not a Paypal transaction
beginning transaction
before choose functions
choose functions (1)
addOrderToDB (1)
addOrderToDB (a)
addOrderToDB (a.1)
addOrderToDB (a.2)]