Refactored AbstractQuery and SelectQuery to allow for InsertQuery and additional queries.
Changed Exceptions
Modify test to account for changes