built sql statements for part3

test sql statements and statements to be incorporated into the perl for
use in part 3