Updated insert and update functions to use the correct .execute()
command instead of .executeQuery() command. Cleaned up classes.