reduce output size of debug_backtrace() before storing in db