Add a simple backtrace for database errors when JOINDIN_DEBUG
Merge branch 'debug-db-error-backtrace'

codesniff fixes