Only deploy when pgsql passes
More randomness and fix varchar(40)