insert & update: pass an array as argument instead of entity