print stack on db error