Changed "upsert" method to accept additional array of lookup keys