Now works with DB2

DB2 works, not sure on what to do with history table