Code cleanup
Throwing Exception in Insert
Update To Throw the Correct Exception
Fixed the Logc in Insert

Throws exception if incorrect value