Fixed errors in pgsql creation scripts: for all serials set maxvalue and cycle (because sometimes serials may overflow)