Raise exception when indexing sql table with row slices.
Use connection with context manager.