fixed z_format id field into uuid and base zformat specs
fixed api specs
fixed respoitory exception handling
fixed postgres test
fixed rspec tests as whole