Fix postgres failing test and codesniffer