Further SQL driver implementation
Refactored error handling in drivers