Fix: sql error on editing project with pgsql.
Fix: Error management on project edit.