Minor corrections
Changed sqldialect to postgres