put stack of exception thread into db