Define return codes for SQL drivers
Fix memory leak on error in db2 driver.
Use new return codes in DB2 driver