Save sql logs

Preserve sql logs in gate. A postgres bug was just found in the gate,
but the issue had to be reproduced locally since postgres logs aren't
saved. This fixes that.

Change-Id: I81e5fc52580383d6606d185ba7ac9fa10be52ff6
Related-Bug: #1321093
Merge "Save sql logs"