Added first somewhat working usage of compressLog in connection, where
compressLog is used instead of log during commit. Instead, log is used
in between commits.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>