ALTER TABLE _grids
  ADD CONSTRAINT _grids_pkey PRIMARY KEY(kod);

CREATE INDEX _grids_i1
  ON _grids
  USING btree
  (userid);
