Most of this code was provided by the professor and I had to add some code, to simulate SELECT and DROP  functions