using array to insert or update db