Added postgres write support for audit table.