insert into dbnames values ('nba');
insert into dbnames values ('gradebook');
insert into dbnames values ('dblp');
insert into dbnames values ('sg');
insert into dbnames values ('mailorder');
insert into dbtablenames values ('gradebook', 'catalog');
insert into dbtablenames values ('gradebook', 'students');
insert into dbtablenames values ('gradebook', 'courses');
insert into dbtablenames values ('gradebook', 'components');
insert into dbtablenames values ('gradebook', 'enrolls');
insert into dbtablenames values ('gradebook', 'scores');
insert into dbcolumnnames values ('gradebook', 'catalog', 'cno');
insert into dbcolumnnames values ('gradebook', 'catalog', 'ctitle');
insert into dbcolumnnames values ('gradebook', 'students', 'sid');
insert into dbcolumnnames values ('gradebook', 'students', 'fname');
insert into dbcolumnnames values ('gradebook', 'students', 'lname');
insert into dbcolumnnames values ('gradebook', 'students', 'minit');
insert into dbcolumnnames values ('gradebook', 'courses', 'term');
insert into dbcolumnnames values ('gradebook', 'courses', 'lineno');
insert into dbcolumnnames values ('gradebook', 'courses', 'cno');
insert into dbcolumnnames values ('gradebook', 'courses', 'a');
insert into dbcolumnnames values ('gradebook', 'courses', 'b');
insert into dbcolumnnames values ('gradebook', 'courses', 'c');
insert into dbcolumnnames values ('gradebook', 'courses', 'd');
insert into dbcolumnnames values ('gradebook', 'components', 'term');
insert into dbcolumnnames values ('gradebook', 'components', 'lineno');
insert into dbcolumnnames values ('gradebook', 'components', 'compname');
insert into dbcolumnnames values ('gradebook', 'components', 'maxpoints');
insert into dbcolumnnames values ('gradebook', 'components', 'weight');
insert into dbcolumnnames values ('gradebook', 'scores', 'sid');
insert into dbcolumnnames values ('gradebook', 'scores', 'term');
insert into dbcolumnnames values ('gradebook', 'scores', 'lineno');
insert into dbcolumnnames values ('gradebook', 'scores', 'compname');
insert into dbcolumnnames values ('gradebook', 'scores', 'points');
insert into dbcolumnnames values ('gradebook', 'enrolls', 'sid');
insert into dbcolumnnames values ('gradebook', 'enrolls', 'term');
insert into dbcolumnnames values ('gradebook', 'enrolls', 'lineno');
insert into qschemas values ('gradebook', 'FindStudents', 'Find Students enrolled in a Course in a given term');
insert into qschemas values ('gradebook', 'FindCourses', 'Find Courses a given Student has Enrolled In');
insert into qselements values ('gradebook', 'FindStudents', element_seq.nextval , 'Course Title', 'catalog', 'ctitle', 'multiselect', 1); 
insert into qselements values ('gradebook', 'FindStudents', element_seq.nextval, 'Term', 'courses', 'term', 'checkbox', 2); 
insert into qselements values ('gradebook', 'FindStudents', element_seq.nextval, 'Find Students', null, null, 'submit', 3); 
insert into qselements values ('gradebook', 'FindCourses', element_seq.nextval, 'Student Last Name', 'students', 'lname', 'text', 1); 
insert into qselements values ('gradebook', 'FindCourses', element_seq.nextval, 'Student minit', 'students', 'minit', 'text', 2); 
insert into qselements values ('gradebook', 'FindCourses', element_seq.nextval, 'Course lineno', 'enrolls', 'lineno', 'text', 3); 
insert into qselements values ('gradebook', 'FindCourses', element_seq.nextval, 'Find Courses', null, null, 'submit', 4); 
insert into qsjointables values ('gradebook', 'FindStudents', 'students');
insert into qsjointables values ('gradebook', 'FindStudents', 'catalog');
insert into qsjointables values ('gradebook', 'FindStudents', 'courses');
insert into qsjointables values ('gradebook', 'FindStudents', 'enrolls');
insert into qsjointables values ('gradebook', 'FindCourses', 'students');
insert into qsjointables values ('gradebook', 'FindCourses', 'enrolls');
insert into qsjointables values ('gradebook', 'FindCourses', 'courses');
insert into qsjointables values ('gradebook', 'FindCourses', 'catalog');
insert into qsoutput values ('gradebook', 'FindStudents', 'courses', 'lineno', 'LINENO',2);
insert into qsoutput values ('gradebook', 'FindStudents', 'students', 'sid', 'SID',1);
insert into qsoutput values ('gradebook', 'FindStudents', 'students', 'lname', 'LASTNAME',4);
insert into qsoutput values ('gradebook', 'FindStudents', 'students', 'fname', 'FIRSTNAME',3);
insert into qsoutput values ('gradebook', 'FindCourses', 'courses', 'term', 'TERM' ,2);
insert into qsoutput values ('gradebook', 'FindCourses', 'catalog', 'ctitle', 'TITLE',1);
