Use 2 queries for insert
- this avoids the left outer join which doesn't work on DB 9.7
Split insert in 2 queries, as done for DB2