sql class done.
exceptions coming soon