added stack trace to insert failure message details