done sql part for lab3