added throw exception on inserts