updated to work with DB2