         WHERE id = _id
         RETURNING id
     $$
-  LANGUAGE 'sql'
+  LANGUAGE SQL;
 
 --  updates a update_project_widget_by_widget_id from the database.
 CREATE OR REPLACE FUNCTION update_project_widget_by_widget_id(_id integer, _widget  jsonb)
     RETURNS integer  AS
     $$
         UPDATE project_widget
-        SET widget = widget
+        SET widget = _widget
         WHERE id = _id
         RETURNING id
     $$
-  LANGUAGE 'sql'
+  LANGUAGE SQL;
 
 -- name: add-institution
 -- Adds a project_widget to the database.

        WHERE id = _id
        RETURNING id
    $$
  LANGUAGE 'sql'

--  deletes a delete_project_widget_by_widget_id from the database.
CREATE OR REPLACE FUNCTION delete_project_widget_by_widget_id(_id integer)

        WHERE email = _email
        RETURNING email;
    $$
  LANGUAGE SQL;

-- Returns all of the user fields associated with the provided email.
CREATE OR REPLACE FUNCTION get_all_users()
