delete teacher and some db access changes