Turns out, pg's rows can also return errors. Also, sometimes logger doesn't really work for some reason