refactored exceptions, only SQLActionException is raised outwards