Fixed errors in pgsql creation scripts

Fixed errors in pgsql creation scripts: removed bytea field size in dialog table and for all serials set maxvalue and cycle (because sometimes serials may overflow)