Truncate super long SQL in DB error log lines (useful for blobs)

Change-Id: Ibb9b9178de80e691406e5c1a7113f0511055d18d
Merge "Truncate super long SQL in DB error log lines (useful for blobs)"