Get respective results for insert/update
Database handing of inserting/updating arrays