Adds postgresql to log visits