     r_depth_distr_id INTEGER,
     last_update timestamp without time zone
         DEFAULT timezone('UTC'::text, now()) NOT NULL
-) TABLESPACE pshai_ts;
-SELECT AddGeometryColumn('pshai', 'source', 'point', 4326, 'POINT', 2);
-SELECT AddGeometryColumn('pshai', 'source', 'area', 4326, 'POLYGON', 2);
+) TABLESPACE hzrdi_ts;
+SELECT AddGeometryColumn('hzrdi', 'source', 'point', 4326, 'POINT', 2);
+SELECT AddGeometryColumn('hzrdi', 'source', 'area', 4326, 'POLYGON', 2);
 
 
 -- Simple fault geometry
-CREATE TABLE pshai.simple_fault (
+CREATE TABLE hzrdi.simple_fault (
     id SERIAL PRIMARY KEY,
     owner_id INTEGER NOT NULL,
     -- gml:id

            rake is NULL OR ((rake >= -180.0) AND (rake <= 180.0))),
    last_update timestamp without time zone
        DEFAULT timezone('UTC'::text, now()) NOT NULL
) TABLESPACE pshai_ts;


-- A batch of OpenQuake input files uploaded by the user

    complex_fault_id INTEGER,
    last_update timestamp without time zone
        DEFAULT timezone('UTC'::text, now()) NOT NULL
) TABLESPACE hzrdi_ts;
SELECT AddGeometryColumn('hzrdi', 'rupture', 'point', 4326, 'POINT', 3);


-- source
CREATE TABLE hzrdi.source (
    id SERIAL PRIMARY KEY,
    owner_id INTEGER NOT NULL,
    -- Associates the source with a source model input file (uploaded by a GUI
